#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include"geomap.h"
//文件绘制窗口
#include"filedrawwindow.h"
//核密度分析对话框
#include"kernelanalysisform.h"
#include"postgislinker.h"

QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();

    bool isFileLoaded;
    postGISLinker* postGISLinker;

public slots:
    void onFileOpen();
    void readGeoJson();
    void readShp();
    void onKernelAnalysis();
    void drawmap();
    void drawmap(geoLayer*layer);
    void LinkToPostGIS();
    void onActionGridIndexPressed();
    void onActionQuadTreeIndexPressed();

private:
    QVector<FileDrawWindow *> fileDrawWindows;
    QVector<geoMap *> maps;
    QString filePath;
    Ui::MainWindow *ui;
    kernelAnalysisForm *form;
};
#endif // MAINWINDOW_H
